package ooday02exercise;

public class AnimalTest {
    public static void main(String[] args) {
        Dog dog = new Dog("小黑",2,"白");
        dog.drink();
        dog.eat();
        dog.swim();
        System.out.println("-----------");
        Chick chick = new Chick("呆瓜",4,"灰");
        chick.drink();
        chick.eat();
        System.out.println("-----------");
        Fish fish = new Fish("来财",4,"银");
        fish.drink();
        fish.eat();
        fish.swim();
    }
}
